home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / DIAGTOOL / X10XA2.ZIP;1 / CAMERA.CMD < prev    next >
Encoding:
Text File  |  1994-08-14  |  3.2 KB  |  84 lines

  1. DISPLAY OFF
  2. #============================================================================
  3. #
  4. #       OUTPORT Demo Program for XA
  5. #
  6. #       This command file shows you a method for outputing
  7. #       data to an LPT (Printer) port.
  8. #       NOTE: Certain functions require Registered version XA 2.x 
  9. #
  10. #       A Camcorder with remote recording capabilities can be controlled
  11. #       by data sent through the printer port.  This command file converts
  12. #       a normal camcorder into a time-lapse camcorder.  The camcorder is
  13. #       turned On for 1 second, then turned Off for 30 seconds. 
  14. #
  15. #
  16. #       The particular camcorder controlled here has a jack that 
  17. #       accepts a 2-connector 1/8" phone plug (R.S. Cat No 274-287). 
  18. #       A SPST 5-Volt Reed relay connected to the parallel port 
  19. #       controls the circuit. Since LPT is already  connected to a printer, 
  20. #       LPT2 was used to control the camera.
  21. #
  22. #
  23. #
  24. #                       +----------------------------------------+
  25. #                       |                                        |
  26. #        +---+  pin 2   |                                        |
  27. #        |: :|-----------------+                                 |
  28. #        |: :|          |      |                                 |||||====
  29. #  LPT2  |: :|          |      |                                 |  Phone
  30. #   25   |: :|          |     -+---------+                       |  Jack
  31. #  pin   |: :|          +----+    Reed   |-----------------------+
  32. # Dshell |: :|                -+---------+
  33. #        |: :|  pin 25         |
  34. #        |: :| ----------------+
  35. #        +---+
  36. #       
  37. #
  38. #       Pins 2 and 25 from the D-shell connection trigger the relay.
  39. #       Pin 2 is the least significant data bit, Pin 25 is ground. 
  40. #       The relay acts as a switch to control the camera. This particular
  41. #       camera is triggered by an Off to On switch transition only. 
  42. #
  43. #
  44. #       
  45. #
  46. #  DEFINE some strings used by this program.
  47. #
  48.  
  49. DEFINE DELAY_OFF DELAY 0:0:20       # Camera OFF time
  50. DEFINE DELAY_1 DELAY 0:0:1          # Delay 1 second
  51. DEFINE DELAY_2 DELAY 0:0:2          # Delay 2 seconds
  52. DEFINE CAMERA_ON OUTPORT 278H 1     # Turn On relay (via pin 2)
  53. DEFINE CAMERA_OFF OUTPORT 278H 0    # Turn Off relay (via pin 2)
  54.  
  55. DISPLAY ON
  56.  
  57. #       
  58. #  THIS FILE IS FOR INFORMATIONAL PURPOSES ONLY. YOU, AND YOU ALONE
  59. #  ARE RESPONSIBLE FOR ANY DAMAGE YOU MAY INFLICT ON YOUR COMPUTER
  60. #  OR PERIPHERAL EQUIPMENT.
  61. #
  62. #  THE "OUTPORT" TOKEN HAS BEED DISABLED IN THE "SHAREWARE" VERSION OF XA.
  63. #  YOU MUST REGISTER THIS SOFTWARE TO HAVE THIS TOKEN ACTIVATED.
  64. #
  65. #  IN OTHER WORDS - THIS DEMO IS NOT GOING TO WORK!!!
  66. #
  67. pause
  68.  
  69. :start                              # This is the start of the loop
  70.  
  71. CAMERA_OFF                          # 0 - 1 transition 
  72. CAMERA_ON                           # ...starts recording
  73. DELAY_2                             # ... for 2 seconds.
  74.  
  75. CAMERA_OFF                          # 0 - 1 transition
  76. CAMERA_ON                           # stops recording.
  77. DELAY_1                             # 
  78. CAMERA_OFF                          # turn relay off
  79.  
  80. DELAY_OFF                           # Wait 20 seconds...
  81. goto start                          # Start all over again
  82.  
  83. :exit
  84.